	layui.use(['form','layer','laydate','table','laytpl'],function(){
	    var form = layui.form,
	        layer = parent.layer === undefined ? layui.layer : top.layer,
	        $ = layui.jquery,
	        laydate = layui.laydate,
	        laytpl = layui.laytpl,
	        table = layui.table;
		//列表数据
		var tableIns = 	table.render({
		        id : "listTable",
				elem : '#list',
				height :"full-125",
				toolbar: true,
				defaultToolbar: ['filter', 'print', 'exports'],
				url :ctxPath+ '/systemUser/systemUserList' ,//数据接口
				page : true, //开启分页,
			        cols : [[
			             {type: "checkbox", fixed:"left", width:50},
			            {field: 'account', title: '账号', align:"center"},
			            {field: 'name', title: '名字', align:'center'},
			            {field: 'birthday', title: '生日',  align:'center'},
			            {field: 'email', title: '电子邮箱', align:'center'},
			            {field: 'phone', title: '电话', align:'center'},
			            {field: 'status', title: '账号状态', align:'center',templet:function(d){
			                return d.status==2?"冻结":"启用";
			            }},
			            {field: 'createTime', title: '创建时间', align:'center', align:'center'},
			            {title: '操作', width:170, fixed:"right",align:"center",templet:function(d){
			            	var html ="";
			            	if($.shiro.hasPermission('/systemUser/toSystemUserUpdate')){
			            		html+='<a class="layui-btn layui-btn-xs boot-layer " boot-title="修改用户" boot-url="'+ctxPath+'/systemUser/toSystemUserUpdate?id='+d.id+'">编辑</a>';
			            	}
			            	if($.shiro.hasPermission('/systemUser/resetPwd')){
			            		html+=	'<a class="layui-btn layui-btn-xs  layui-btn-warm boot-ajax " boot-title="确认要重置密为6个1吗" boot-url="'+ctxPath+'/systemUser/resetPwd?id='+d.id+'"  >重置密码</a> ';
			            	}
			            	if($.shiro.hasPermission('/systemUser/systemUserDelete')){
			            		html+='<a class="layui-btn layui-btn-xs layui-btn-danger boot-ajax " boot-title="确认要删除吗" boot-url="'+ctxPath+'/systemUser/systemUserDelete?id='+d.id+'"  >删除</a> ';;
			            	}
			            	return html;
			            }}
			        ]]
			});
		});